{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "described-theme",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "There was no error!\n",
      "输出成功，请打开 test.xls 查看输出结果\n"
     ]
    }
   ],
   "source": [
    "# 1. 建交互控制台\n",
    "from yolib.convertter import pattern_copier\n",
    "copier = pattern_copier()\n",
    "# 2. 请求读取数据\n",
    "copier.read_data(data_file=r'.\\data\\请款明细表.xlsx', idx=1, factory_name=None, receipt='请款单')\n",
    "copier.tidy_data = copier.tidy_data[copier.tidy_data.填单日期=='2021-7-30']\n",
    "copier.to_bathpay('test.xls',topamount=200000)\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "suburban-talent",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "literary-costa",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
